<template>
	<view class="page">
		<con-venues :itemChooselist='itemChooselist' :venuelist='venuelist' @confirm="confirm1"></con-venues>
		<view style="position: fixed;z-index: 999;width: 100%;top: 120rpx;">
			<view class="box_11">
				<view class="image-wrapper_7">
					<u-search @search="search" @custom="search" placeholder="搜索" :showAction="false"
						v-model="searchKey">
					</u-search>
				</view>
				<view class="label_list" @click="plbatch" v-if="plshow">
					<image
						src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/0555f554c12d0d628b0e4e3e90147966755aa715.png"
						class="label_7"></image>
					<view class="label_77">
						设置
					</view>
				</view>
				<view class="label_list" @click="plbatch" v-if="!plshow">
					<image
						src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/0555f554c12d0d628b0e4e3e90147966755aa715.png"
						class="label_7"></image>
					<view class="label_77">
						批量
					</view>
				</view>
				<view class="label8_list">
					<image
						src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/a0caafa1d0f5c11490a41f203aab143debf439d6.png"
						class="label_8"></image>
					<view class="label_88">
						<!-- 筛选 -->
						<HM-filterDropdown :menuTop="88" :filterData="filterData" :defaultSelected="defaultSelected"
							:updateMenuName="true" @confirm="confirm" dataFormat="Object"></HM-filterDropdown>
					</view>
				</view>
			</view>
		</view>
		<!-- <view class="group_3">
			<view class="item">
				<input type="text" placeholder="手机号" class="atinput" />
			</view>
			<view class="item">
				<input type="text" placeholder="会员姓名" class="atinput" />
			</view>
			<view class="item">
				<input type="text" placeholder="卡名称" disabled v-model="userInfo.occupation_relation"
					@click="showoccupation = true" class="atinput" />
			</view>
			<u-picker :show="showoccupation" :columns="occupation_status" keyName="label" @confirm="addoccupation"
				@cancel="showoccupation = false">
			</u-picker>
			<button bindtap="onClick" class="button_4">
				查询
			</button>
		</view> -->
		<view class="" style="margin-top: 74rpx;">
			<scroll-view scroll-y class="listall" v-for="(item,index) in hylist" :key="index" v-if="plshow">
				<v-gap color="#EDF5F5" />
				<view class="listsee">
					<div class="d-flex flex-column" style="padding: 20rpx 20rpx 0 20rpx;">
						<view class="d-flex flex-row" style="padding: 10rpx 0;">
							<view style="width: 100rpx;height: 100rpx;">
								<image style="width: 100rpx;height: 100rpx;border-radius: 50% 50%;"
									:src="item.head_pic" mode=""></image>
							</view>
							<view class="d-flex flex-column flex-1" style="margin-left: 20rpx;">
								<view class="d-flex flex-row justify-space-between flex-1">
									<view class="d-flex flex-row" style=" align-items: center;">
										<view style="font-size: 24rpx;">
											{{item.username}}
										</view>
									</view>
									
									<view class="" style="height: 50rpx;">
										<image @click="showsclick(item,index)"
											src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/c154ba8794158495ff83ed092dc0fad167ff2406.png"
											style="width: 80rpx;height: 40rpx;" mode=""></image>
									</view>
								</view>
								<view class="d-flex flex-row" style="">
									<view v-if="item.base_sex"
										style="width: 50rpx;height: 30rpx;background: #466eff;color: #ffffff;font-size: 22rpx;text-align: center;line-height: 30rpx;border-radius: 5rpx;margin-right: 20rpx;">
										{{item.base_sex}}
									</view>
									<view v-if="item.base_age"
										style="width: 50rpx;height: 30rpx;background: #b477ff;color: #ffffff;font-size: 22rpx;text-align: center;line-height: 30rpx;border-radius: 5rpx;">
										{{item.base_age}}
									</view>
								</view>
								<view class="" style="font-size: 24rpx;margin-top: 10rpx;">
									{{item.phone}}
								</view>
							</view>
							<!-- <view class="d-flex flex-row" style="margin:20rpx 20rpx 20rpx 0;">
								<view class="d-flex flex-column" v-for="im in 3"
									style="width: 70rpx;height: 35rpx;background: #d9d9d9;color: #000000;font-size: 22rpx;text-align: center;line-height: 35rpx;border-radius: 5rpx;margin-right: 20rpx;">
									游泳
								</view>
							</view> -->
						</view>
						<view class="" style="width: 690rpx;">
							<u-line length="97%"></u-line>
						</view>
						<view class="d-flex flex-row justify-space-between" style="height: 60rpx; line-height: 60rpx;"
							@click="tomember(item)">
							<view class="" style="font-size: 24rpx;">
								更多信息
							</view>
							<u-icon name="arrow-right" size="16" color="#999999"></u-icon>
						</view>
					</div>
					<view class="box_20" v-if="clickMenuId == item.id">
						<!-- <view class="image-text_6" @click="shanchu(item,index)">
							<image
								src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/35c39fca1bbdb7af38900601c32403dff06abac6.png"
								class="icon_7"></image>
							<text lines="1" class="text-group_6">删除</text>
						</view> -->
						<view class="image-text_6" @click="bianji(item,index)">
							<image
								src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/35c39fca1bbdb7af38900601c32403dff06abac6.png"
								class="icon_7"></image>
							<text lines="1" class="text-group_6">编辑</text>
						</view>
						<view class="image-text_6" @click="haoli(item,index)">
							<image
								src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/35c39fca1bbdb7af38900601c32403dff06abac6.png"
								class="icon_7"></image>
							<text lines="1" class="text-group_6">好礼相送</text>
						</view>
						<view class="image-text_6" @click="fasong(item,index)">
							<image
								src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/35c39fca1bbdb7af38900601c32403dff06abac6.png"
								class="icon_7"></image>
							<text lines="1" class="text-group_6">发送通知</text>
						</view>
						<!-- <view class="image-text_6" @click="yanqi(item,index)">
							<image
								src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/35c39fca1bbdb7af38900601c32403dff06abac6.png"
								class="icon_7"></image>
							<text lines="1" class="text-group_6">延期</text>
						</view> -->
						<image
							src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/f820809dedb1e84b45f4b46e359e3ad308af5541.png"
							class="image_4"></image>
					</view>
				</view>
			</scroll-view>
			<scroll-view scroll-y class="listall" v-for="(item,index) in hylist" :key="index" v-if="!plshow"
				@click="handSelect(item)">
				<v-gap color="#EDF5F5" />
				<view class="listsee" :class="{'active1': weekSelect.includes(item.id)}">
					<div class="d-flex flex-column" style="padding: 20rpx;">
						<view class="d-flex flex-row" style="padding: 10rpx 0;">
							<view class="">
								<image style="width: 100rpx;height: 100rpx;" :src="item.head_pic" mode=""></image>
							</view>
							<view class="d-flex flex-column flex-1" style="margin-left: 20rpx;">
								<view class="d-flex flex-row  flex-1">
									<view class="" style="font-size: 24rpx;">
										{{item.username}}
									</view>
									<view v-if="item.base_sex"
										style="width: 50rpx;height: 30rpx;background: #d9d9d9;color: #000000;font-size: 22rpx;text-align: center;line-height: 30rpx;border-radius: 5rpx;margin-left: 20rpx;">
										{{item.base_sex}}
									</view>
									<view v-if="item.base_age"
										style="width: 50rpx;height: 30rpx;background: #d9d9d9;color: #000000;font-size: 22rpx;text-align: center;line-height: 30rpx;border-radius: 5rpx;margin-left: 20rpx;">
										{{item.base_age}}
									</view>
									<!-- <view class="" style="height: 50rpx;">
										<image @click="showsclick(item,index)"
											src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/c154ba8794158495ff83ed092dc0fad167ff2406.png"
											style="width: 80rpx;height: 40rpx;" mode=""></image>
									</view> -->
								</view>
								<view class="" style="font-size: 24rpx;">
									{{item.phone}}
								</view>
							</view>
						</view>
					</div>
				</view>
			</scroll-view>
			<v-gap height="140rpx" color="#EDF5F5" />
		</view>
		<view class="d-flex flex-row justify-space-between justify-center align-center" v-if="plshow"
			style="position: fixed;bottom: 0;height: 120rpx;background-color: #fff;width: 100%;padding: 0 8%;z-index: 99;">
			<view class="" @click="plbatch"
				style="width: 45%;height: 70rpx;background: #ffffff;color: #ff4040;font-size: 24rpx;text-align: center;border-radius: 35rpx;line-height: 70rpx;border:#ff4040 1rpx solid">
				批量操作
			</view>
			<view class="" @click="addstudent"
				style="width: 45%;height: 70rpx;background: linear-gradient(0deg, rgba(214, 53, 53, 0.9), rgba(255, 64, 64, 0.93), rgba(250, 142, 142, 0.93));color: #ffffff;font-size: 24rpx;text-align: center;line-height: 70rpx;border-radius: 35rpx;">
				添加会员
			</view>
		</view>
		<view class="d-flex flex-row justify-space-between justify-center align-center" v-if="!plshow"
			style="position: fixed;bottom: 0;height: 120rpx;background-color: #fff;width: 100%;padding: 0 8%;z-index: 99;">
			<view class="" @click="selectAllWeeks"
				style="width: 30%;height: 50rpx;background: #ffffff;color: #ff4040;font-size: 22rpx;text-align: center;line-height: 50rpx;border:#ff4040 1rpx solid">
				全选
			</view>
			<view class="" @click="addCoupons"
				style="width: 30%;height: 50rpx;color: #c3c3c3;font-size: 22rpx;text-align: center;line-height: 50rpx;background: #ffffff;border:#c3c3c3 1rpx solid">
				好礼相送
			</view>
			<view class="" @click="fa_song"
				style="width: 30%;height: 50rpx;color: #ffffff;font-size: 22rpx;text-align: center;line-height: 50rpx;background: #ff4040;">
				发送通知
			</view>
			<!-- <view class="" @click="onpiliang"
				style="width: 22%;height: 50rpx;color: #ffffff;font-size: 22rpx;text-align: center;line-height: 50rpx;background: #ffc76b;">
				批量延期
			</view> -->
		</view>
		<u-popup @touchmove.stop :show="showCoupons" @close="closeCoupons" closeOnClickOverlay mode="center" round="15"
			:safeAreaInsetBottom="false">
			<view class="store-popup">
				<view class="title flex-between">
					<text>好礼相送</text>
					<u-icon @click="closeCoupons1" name="close-circle-fill" color="#dde3e8" size="18"></u-icon>
				</view>
				<scroll-view :scroll-top="scrollTop" scroll-y="true" class="list-1">
					<view class="list-2">
						<view class="popuplist" v-for="(item,index) in 6" :key="index"
							@click="times_Select(item,index)">
							<view class="list_see" :class="{'active1': index === select_Id}">
								<div class="d-flex flex-column" style="padding: 20rpx;">
									<view class="">
										<image style="width: 200rpx;height: 230rpx;"
											src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/ab/eb19425d9b932cc78947031a234757.png?attname=%E4%BD%93%E8%82%B2%E4%B8%AD%E5%BF%83%E8%AF%A6%E6%83%85+%282%29.png"
											mode="">
										</image>
									</view>
									<view class="" style="font-size: 24rpx;">
										234234
									</view>
									<view class="" style="font-size: 24rpx;">
										ewrwer
									</view>
								</div>
							</view>
						</view>
					</view>
					<!-- </scroll-view> -->
				</scroll-view>
				<text lines="1" class="text_8">赠送是由</text>
				<view class="item">
					<input type="text" placeholder="请选择赠送是由" disabled v-model="occupation_xcx" @click="showxcx = true"
						class="atinput" />
				</view>
				<u-picker :show="showxcx" :columns="occupation_status" keyName="name" @confirm="addxcx"
					@cancel="showxcx = false">
				</u-picker>
				<text lines="1" class="text_8">发送时间</text>
				<view class="item">
					<view class="flex-space-between week_list">
						<view class="week-item" :class="{'active':index === selectId}" v-for="(item,index) in timeList"
							:key="index" @click="timesSelect(item,index)">
							{{item.name}}
						</view>
					</view>
				</view>
				<text lines="1" class="text_8">定时时间</text>
				<view class="item">
					<input type="text" placeholder="请填写定时时间" @click="show1 = true" disabled v-model='datatime1'
						class="atinput" />
				</view>
				<u-datetime-picker :show="show1" v-model="value1" mode="datetime" @cancel="show1 = false"
					:minDate="-845628841" :maxDate="2856778555000" @confirm="confirmclick1()"></u-datetime-picker>

				<view class="d-flex flex-row justify-center align-center">
					<view class="" @click="onaddcq"
						style="width: 45%;height: 70rpx;background: #ffffff;color: #ff4040;font-size: 24rpx;text-align: center;border-radius: 35rpx;line-height: 70rpx;border:#ff4040 1rpx solid">
						取消
					</view>
					<view class="" @click="onaddcq"
						style="width: 45%;height: 70rpx;background: linear-gradient(0deg, rgba(214, 53, 53, 0.9), rgba(255, 64, 64, 0.93), rgba(250, 142, 142, 0.93));color: #ffffff;font-size: 24rpx;text-align: center;line-height: 70rpx;border-radius: 35rpx;margin-left: 30rpx;">
						立即赠送
					</view>
				</view>
			</view>
		</u-popup>

		<u-popup @touchmove.stop :show="showyanqiu" @close="closeCoupons" closeOnClickOverlay mode="center" round="15"
			:safeAreaInsetBottom="false">
			<view class="store-popup">
				<view class="title flex-between">
					<text>批量延期</text>
					<u-icon @click="closepiliang" name="close-circle-fill" color="#dde3e8" size="18"></u-icon>
				</view>
				<text lines="1" class="text_8">延期时间</text>
				<view class="item">
					<input type="text" placeholder="请填写延期时间" @click="show2 = true" disabled v-model='datatime2'
						class="atinput" />
				</view>
				<u-datetime-picker :show="show2" v-model="value2" mode="datetime" @cancel="show2 = false"
					:minDate="-845628841" :maxDate="2856778555000" @confirm="confirmclick2()"></u-datetime-picker>
				<text lines="1" class="text_8">备注</text>
				<view class="item">
					<u-textarea v-model="remark" placeholder="请输入备注" maxlength='-1'></u-textarea>
				</view>
				<view class="d-flex flex-row justify-center align-center" style="margin-top: 20rpx;">
					<view class="" @click="onaddpil"
						style="width: 45%;height: 70rpx;background: #ffffff;color: #ff4040;font-size: 24rpx;text-align: center;border-radius: 35rpx;line-height: 70rpx;border:#ff4040 1rpx solid">
						取消
					</view>
					<view class="" @click="onaddpil"
						style="width: 45%;height: 70rpx;background: linear-gradient(0deg, rgba(214, 53, 53, 0.9), rgba(255, 64, 64, 0.93), rgba(250, 142, 142, 0.93));color: #ffffff;font-size: 24rpx;text-align: center;line-height: 70rpx;border-radius: 35rpx;margin-left: 30rpx;">
						提交
					</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>
<script>
	const venues = require("@/api/venues/venues.js");
	const lastdata = [{
		"name": '筛选',
		"type": 'filter',
		"submenu": [{
				"name": "性别",
				"submenu": [{
						"name": "男",
						"value": "1"
					},
					{
						"name": "女",
						"value": "2"
					}
				]
			},
			{
				"name": "机构",
				"submenu": [{
						"name": "总部",
						"value": "1"
					},
					{
						"name": "分布A",
						"value": "2"
					},
					{
						"name": "分布B",
						"value": "3"
					}
				]
			},
			{
				"name": "转态",
				"submenu": [{
						"name": "在读",
						"value": "4"
					},
					{
						"name": "休学",
						"value": "5"
					},
					{
						"name": "结业",
						"value": "6"
					}
				]
			},
			{
				"name": "年龄",
				"submenu": [{
						"name": "6-8岁",
						"value": "4"
					},
					{
						"name": "9-12岁",
						"value": "5"
					},
					{
						"name": "13-15岁",
						"value": "6"
					}
				]
			}
		]
	}];
	export default {
		data() {
			return {
				showoccupation: false, //职业
				occupation_list: [],
				userInfo: {
					occupation_relation: '',
					occupation_relation_id: '',
				},
				shows0: -1,
				filterData: [],
				itemChooselist: {},
				venuelist: [],
				plshow: true,
				weekSelect: [], //选中的
				hylist: [],
				searchKey: '',
				clickMenuId: 0,
				listQuery: { //分页
					pageNo: 1,
					pageSize: 7,
				},
				totalPage: '', //几页
				timeList: [{
						name: '即时发送',
						id: '1'
					},
					{
						name: '定时发送',
						id: '2'
					}
				],
				timeSelect: [], //选中的
				value1: Number(new Date()),
				datatime1: '',
				value2: Number(new Date()),
				datatime2: '',
				show1: false,
				show2: false,
				showCoupons: false,
				click_MenuId: 0,
				selectId: 0,
				select_Id: 0,
				xcx_status: [{
						name: '生日礼物',
						id: '1'
					},
					{
						name: '活动礼物',
						id: '2'
					}
				],
				occupation_xcx: '',
				occupation_xcx_id: '',
				occupation_status: [], //职业
				showxcx: false,
				showyanqiu: false,
				venue_id: ''
			}
		},
		onLoad() {
			var data = uni.getStorageSync("wqzdy");
			var items = JSON.parse(data)
			this.venuelist = items
			// 处理itemChooselist的逻辑
			if (this.venuelist.length > 0) {
				this.itemChooselist = this.venuelist[0]
				this.venue_id = this.itemChooselist.id
			} else {
				this.itemChooselist = {}; // 或者设置为其他默认值
			}
			setTimeout(() => {
				this.filterData = lastdata;
			}, 100);
			this.shuju()
		},
		onShow() {
			this.hylist = []
			this.listQuery.pageNo = 1
			this.userindex()
			this.clickMenuId = 0
		},
		methods: {
			addxcx(e) {
				this.occupation_xcx = e.value[0].name
				this.occupation_xcx_id = e.value[0].id
				this.showxcx = false
			},
			closeCoupons1() {
				this.showCoupons = false;
			},
			addCoupons() {
				if (this.weekSelect == '') {
					uni.$u.toast('请选择会员');
				} else {
					this.showCoupons = true
				}
			},
			haoli(item, index) {
				this.showCoupons = true
			},
			yanqi(item, index) {
				this.showyanqiu = true
			},
			fasong() {},
			fa_song() {},
			onpiliang() {
				if (this.weekSelect == '') {
					uni.$u.toast('请选择会员');
				} else {
					this.showyanqiu = true
				}
			},
			onaddpil() {
				this.showyanqiu = false
			},
			closepiliang() {
				this.showyanqiu = false
			},
			timesSelect(item, index) {
				this.selectId = index
			},
			times_Select(item, index) {
				this.select_Id = index
			},
			onaddcq() {
				this.showCoupons = false;
			},

			async bianji(item, index) {
				// uni.navigateTo({
				// 	url: `../membershipadd/index?selectionArr=${encodeURIComponent(JSON.stringify(item))}` +
				// 		"&add=" + 2,
				// })
				uni.navigateTo({
					url: '../membershipadd/index?id=' + item.id + "&add=" + 2 + "&venue_id=" + this.venue_id
				})
			},
			search() {
				this.hylist = []
				this.listQuery.pageNo = 1
				this.userindex()
			},
			async userindex() {
				let that = this
				if (this.listQuery.pageNo === 1) that.hylist = [];
				let params = {
					output: 'json',
					username: this.searchKey,
					page: this.listQuery.pageNo,
					limit: this.listQuery.pageSize,
					venue_id: this.venue_id
				};
				let res = await venues.userindex(params);
				if (res.code === 1) {
					// this.hylist = res.data.rows
					that.hylist = that.hylist.concat(res.data.data); //将数据拼接在一起
					that.totalPage = res.data.last_page
				}
			},
			// 下拉刷新
			onReachBottom() {
				if (this.totalPage <= this.listQuery.pageNo) {
					uni.showToast({
						title: '没有更多了',
						duration: 2000,
						icon: 'none'
					});
					return
				}
				this.listQuery.pageNo += 1;
				this.userindex()
			},
			// 新增的全选方法
			selectAllWeeks() {
				if (this.weekSelect.length === this.hylist.length) {
					// 如果已全选，则清空选中数组
					this.weekSelect = [];
				} else {
					// 如果未全选，则选中所有项目
					this.weekSelect = this.hylist.map(item => item.id);
				}
			},
			handSelect(item) {
				let data = item.id;
				// 使用indexOf检查是否已选中，避免重复或遗漏
				const index = this.weekSelect.indexOf(data);
				if (index > -1) {
					// 如果已选中，则移除
					this.weekSelect.splice(index, 1);
				} else {
					// 如果未选中，则添加
					this.weekSelect.push(data);
				}
			},
			plbatch() {
				this.weekSelect = []
				this.plshow = !this.plshow
			},
			addstudent() {
				uni.navigateTo({
					url: '../membershipadd/index?add=' + 1
				})
			},
			confirm(e) {
				// this.indexArr = e.index;
				// this.valueArr = e.value;

			},
			showsclick(item, index) {
				// this.shows0 = index
				let _this = this
				if (this.clickMenuId == item.id) {
					this.clickMenuId = 0
				} else {
					this.clickMenuId = item.id;
				}
			},
			tomember(item) {
				this.clickMenuId = 0
				uni.navigateTo({
					url: '../membershipdetail/index?id=' + item.id + '&venue_id=' + this.venue_id
				})
			},

			shuju() {
				this.occupation_status.push(
					this.xcx_status
				)
			},
			// 职业
			addoccupation(e) {
				this.userInfo.occupation_relation = e.value[0].label
				this.userInfo.occupation_relation_id = e.value[0].id
				this.showoccupation = false
			},
			
			confirm1(data) {
				this.venue_id = data
			    console.log(data, 'data');
			    // 直接根据接收到的 id 在 venuelist 中查找对应的场馆对象
			    const selectedItem = this.venuelist.find(item => item.id === data);
			    if (selectedItem) {
			        // 将找到的场馆对象赋值给 itemChooselist
			        this.itemChooselist = selectedItem;
			    } else {
			        console.log(`未找到 id 为 ${data} 的场馆对象`);
			    }
				this.userindex()
			},
			confirmclick1(value) {
				this.show1 = false
				let date = new Date(value.value);
				//时间戳为10位需*1000，时间戳为13位的话不需乘1000
				let y = date.getFullYear();
				let MM = date.getMonth() + 1;
				MM = MM < 10 ? ('0' + MM) : MM; //月补0
				let d = date.getDate();
				d = d < 10 ? ('0' + d) : d; //天补0
				let h = date.getHours();
				h = h < 10 ? ('0' + h) : h; //小时补0
				let m = date.getMinutes();
				m = m < 10 ? ('0' + m) : m; //分钟补0
				let s = date.getSeconds();
				s = s < 10 ? ('0' + s) : s; //秒补0
				this.datatime1 = y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s
				return y + '-' + MM + '-' + d; //年月日
				return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s; //年月日时分秒
			},
			confirmclick2(value) {
				this.show2 = false
				let date = new Date(value.value);
				//时间戳为10位需*1000，时间戳为13位的话不需乘1000
				let y = date.getFullYear();
				let MM = date.getMonth() + 1;
				MM = MM < 10 ? ('0' + MM) : MM; //月补0
				let d = date.getDate();
				d = d < 10 ? ('0' + d) : d; //天补0
				let h = date.getHours();
				h = h < 10 ? ('0' + h) : h; //小时补0
				let m = date.getMinutes();
				m = m < 10 ? ('0' + m) : m; //分钟补0
				let s = date.getSeconds();
				s = s < 10 ? ('0' + s) : s; //秒补0
				this.datatime2 = y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s
				return y + '-' + MM + '-' + d; //年月日
				return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s; //年月日时分秒
			},
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		width: 100%;
		min-height: 100vh;
		background-color: #EDF5F5;
		position: relative;

		.listall {
			.listsee {
				background-color: #ffffff;
				width: 94%;
				margin-left: 3%;
				// margin-bottom: 20rpx;
				position: relative;
				border: 2rpx #fff solid;
			}

			.active1 {
				border: 2rpx #2f89ff solid;
			}
		}

		.box_11 {
			width: 100%;
			height: 130rpx;
			display: flex;
			flex-direction: row;
			background: #ffffff;
			padding: 0 20rpx;

			// .image-wrapper_7 {
			// 	width: 541rpx;
			// 	height: 60rpx;
			// 	flex-direction: row;
			// 	display: flex;
			// 	margin-top: 15rpx;
			// }
			.image-wrapper_7 {
				position: absolute;
				left: 30rpx;
				top: 30rpx;
				width: 541rpx;
				height: 62rpx;
				flex-direction: row;
				display: flex;
			}

			.label_list {
				display: flex;
				flex-direction: column;
				position: absolute;
				justify-content: center;
				/* 相对父元素水平居中 */
				align-items: center;
				/*  子元素相对父元素垂直居中 */
				right: 90rpx;
				width: 80rpx;
				top: 27rpx;

				.label_7 {
					width: 36rpx;
					height: 36rpx;
				}

				.label_77 {
					width: 60rpx;
					height: 36rpx;
					color: #333333;
					font-size: 26rpx;
					text-align: center;
				}
			}

			.label8_list {
				display: flex;
				flex-direction: column;
				position: absolute;
				justify-content: center;
				/* 相对父元素水平居中 */
				align-items: center;
				/*  子元素相对父元素垂直居中 */
				right: 20rpx;
				width: 80rpx;
				top: 27rpx;

				.label_8 {
					width: 36rpx;
					height: 36rpx;
				}

				.label_88 {
					width: 60rpx;
					height: 36rpx;
					color: #333333;
					font-size: 26rpx;
					text-align: center;
				}
			}
		}

		.group_3 {
			background-color: rgb(255, 255, 255);
			width: 710rpx;
			// height: 100%;
			display: flex;
			flex-direction: column;
			margin: 0 0 0 20rpx;
			position: fixed;
			z-index: 99;
			top: 249rpx;


			.item {
				// padding: 29rpx 30rpx 30rpx;
				padding: 20rpx 30rpx 20rpx 30rpx;

				.atinput {
					// border: #EBECEE 1rpx solid;
					font-size: 24rpx;
					height: 60rpx;
					width: 650rpx;
					padding-left: 20rpx;
				}

				.item-title {
					color: rgb(153, 153, 153);
					font-size: 28rpx;
					font-weight: 500;
					margin-bottom: 20rpx;
				}

				.value {
					color: rgb(51, 51, 51);
					font-size: 28rpx;
					font-weight: 500;
				}

				.time-cell {
					color: rgb(51, 51, 51);
					font-size: 28rpx;
					font-weight: 500;
					justify-content: flex-start;

					.time {
						width: 49%;

						&:last-of-type {
							margin-left: 20rpx;
						}
					}
				}

				.week-list {
					display: grid;
					grid-template-columns: repeat(5, 1fr);
					grid-gap: 20rpx;
					position: relative;

					.week-item {
						padding: 15rpx 0;
						background-color: rgb(243, 243, 243);
						border-radius: 5rpx;
						text-align: center;
						color: rgb(51, 51, 51);
						font-size: 24rpx;
						font-weight: 500;
						border: solid 2rpx transparent;
						box-sizing: border-box;
					}

					.active {
						color: rgba(255, 98, 0, 1);
						background-color: rgba(255, 65, 5, 0.1);
						// border: solid 2rpx rgb(99, 93, 247);
						position: relative;

						// &:before {
						// 	display: block;
						// 	content: '';
						// 	position: absolute;
						// 	width: 27rpx;
						// 	height: 28rpx;
						// 	right: -2rpx;
						// 	bottom: -2rpx;
						// 	background-image: url("https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/46b1cc85fcb0fd76095daf823b7d2bb4a3235519.png");
						// 	background-repeat: no-repeat;
						// 	background-size: 100%;
						// }
					}

					.active1 {
						color: rgba(255, 98, 0, 1);
						background-color: rgba(255, 65, 5, 0.1);
						// border: solid 2rpx rgb(99, 93, 247);
						position: relative;
					}

					.active2 {
						color: rgba(255, 98, 0, 1);
						background-color: rgba(255, 65, 5, 0.1);
						// border: solid 2rpx rgb(99, 93, 247);
						position: relative;
					}

					.check {
						color: rgb(51, 51, 51);
						font-size: 24rpx;
						position: absolute;
						bottom: 10rpx;
						right: 0;
					}
				}
			}
		}

		.text_2 {
			width: 93rpx;
			height: 23rpx;
			overflow-wrap: break-word;
			color: rgba(136, 136, 136, 1);
			font-size: 24rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 15rpx 0 0 21rpx;
		}

		.section_2 {
			background-color: rgba(229, 229, 229, 1.000000);
			width: 672rpx;
			height: 1rpx;
			display: flex;
			flex-direction: column;
			margin: 40rpx 0 0 18rpx;
		}

		.text_3 {
			width: 47rpx;
			height: 23rpx;
			overflow-wrap: break-word;
			color: rgba(136, 136, 136, 1);
			font-size: 24rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 42rpx 0 0 19rpx;
		}

		.text_4 {
			width: 82rpx;
			height: 26rpx;
			overflow-wrap: break-word;
			color: rgba(51, 51, 51, 1);
			font-size: 28rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 24rpx 0 0 20rpx;
		}

		.section_3 {
			background-color: rgba(229, 229, 229, 1.000000);
			width: 672rpx;
			height: 1rpx;
			display: flex;
			flex-direction: column;
			margin: 40rpx 0 0 18rpx;
		}

		.text_5 {
			width: 47rpx;
			height: 23rpx;
			overflow-wrap: break-word;
			color: rgba(136, 136, 136, 1);
			font-size: 24rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 39rpx 0 0 19rpx;
		}

		.text_6 {
			width: 82rpx;
			height: 26rpx;
			overflow-wrap: break-word;
			color: rgba(51, 51, 51, 1);
			font-size: 28rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 24rpx 0 0 20rpx;
		}

		.section_4 {
			background-color: rgba(229, 229, 229, 1.000000);
			width: 672rpx;
			height: 1rpx;
			display: flex;
			flex-direction: column;
			margin: 40rpx 0 0 18rpx;
		}

		.text_7 {
			width: 95rpx;
			height: 23rpx;
			overflow-wrap: break-word;
			color: rgba(136, 136, 136, 1);
			font-size: 24rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 39rpx 0 0 19rpx;
		}

		.image_2 {
			width: 151rpx;
			height: 151rpx;
			margin: 25rpx 0 0 18rpx;
		}


		.text_8 {
			width: 95rpx;
			height: 23rpx;
			overflow-wrap: break-word;
			color: rgba(136, 136, 136, 1);
			font-size: 24rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 20rpx 0 0 19rpx;
		}

		.section_6 {
			width: 378rpx;
			height: 62rpx;
			flex-direction: row;
			display: flex;
			justify-content: space-between;
			margin: 26rpx 0 27rpx 21rpx;
		}

		.button_1 {
			background-color: rgba(243, 243, 243, 1.000000);
			height: 62rpx;
			display: flex;
			flex-direction: column;
			width: 174rpx;
		}

		.text_9 {
			width: 48rpx;
			height: 24rpx;
			overflow-wrap: break-word;
			color: rgba(51, 51, 51, 1);
			font-size: 24rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 19rpx 0 0 63rpx;
		}

		.button_2 {
			background-color: rgba(255, 65, 5, 0.100000);
			height: 62rpx;
			display: flex;
			flex-direction: column;
			width: 174rpx;
		}

		.text_10 {
			width: 73rpx;
			height: 24rpx;
			overflow-wrap: break-word;
			color: rgba(255, 98, 0, 1);
			font-size: 24rpx;
			font-family: PingFang-SC-Medium;
			font-weight: 500;
			text-align: left;
			white-space: nowrap;
			line-height: 34rpx;
			margin: 19rpx 0 0 51rpx;
		}

		.button_4 {
			width: 90%;
			height: 70rpx;
			background: #3dabff;
			border-radius: 10rpx;
			margin-left: 5%;
			color: #fff;
			font-size: 28rpx;
			z-index: 999;
			line-height: 70rpx;
			margin-bottom: 20rpx;
		}

		.button_3 {
			width: 90%;
			height: 80rpx;
			position: fixed;
			bottom: 20rpx;
			background: linear-gradient(0deg, rgba(214, 53, 53, 0.9), rgba(255, 64, 64, 0.93), rgba(250, 142, 142, 0.93));
			border-radius: 80rpx 80rpx;
			margin-left: 5%;
			color: #fff;
			font-size: 28rpx;
			z-index: 999;
		}

		.box_20 {
			background-color: rgba(0, 0, 0, 1);
			border-radius: 10rpx;
			position: absolute;
			width: 320rpx;
			height: 105rpx;
			flex-direction: row;
			display: flex;
			right: 35rpx;
			top: 100rpx;
			z-index: 998;

			.image-text_4 {
				width: 34rpx;
				height: 62rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				margin: 20rpx 0 0 28rpx;
			}

			.icon_5 {
				width: 30rpx;
				height: 30rpx;
				margin-left: 2rpx;
			}

			.text-group_4 {
				width: 34rpx;
				height: 18rpx;
				overflow-wrap: break-word;
				color: rgba(255, 255, 255, 1);
				font-size: 18rpx;
				font-family: PingFang-SC-Medium;
				font-weight: 500;
				text-align: left;
				white-space: nowrap;
				line-height: 24rpx;
				margin-top: 14rpx;
			}

			.image-text_5 {
				width: 36rpx;
				height: 65rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				margin: 17rpx 0 0 37rpx;
			}

			.icon_67 {
				width: 32rpx;
				height: 32rpx;
				margin-left: 2rpx;
			}

			.text-group_5 {
				width: 36rpx;
				height: 18rpx;
				overflow-wrap: break-word;
				color: rgba(255, 255, 255, 1);
				font-size: 18rpx;
				font-family: PingFang-SC-Medium;
				font-weight: 500;
				text-align: left;
				white-space: nowrap;
				line-height: 24rpx;
				margin-top: 15rpx;
			}

			.image-text_6 {
				width: 100rpx;
				height: 65rpx;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				margin: 18rpx 0 0 0;
			}

			.icon_7 {
				width: 32rpx;
				height: 32rpx;
				margin-left: 2rpx;
			}

			.text-group_6 {
				overflow-wrap: break-word;
				color: rgba(255, 255, 255, 1);
				font-size: 18rpx;
				font-weight: 500;
				white-space: nowrap;
				margin-top: 15rpx;
			}

			.image_4 {
				position: absolute;
				right: 10rpx;
				top: -13rpx;
				width: 28rpx;
				height: 14rpx;
			}
		}

		.store-popup {
			padding: 20rpx;
			width: 660rpx;

			.item {
				padding: 10rpx;
			}

			.week_list {
				display: grid;
				grid-template-columns: repeat(5, 1fr);
				grid-gap: 20rpx;
				position: relative;

				.week-item {
					padding: 15rpx 0;
					background-color: rgb(243, 243, 243);
					border-radius: 5rpx;
					text-align: center;
					color: rgb(51, 51, 51);
					font-size: 24rpx;
					font-weight: 500;
					border: solid 2rpx transparent;
					box-sizing: border-box;
				}

				.active {
					color: rgba(255, 98, 0, 1);
					background-color: rgba(255, 65, 5, 0.1);
					// border: solid 2rpx rgb(99, 93, 247);
					position: relative;
				}
			}

			.atinput {
				// border: #EBECEE 1rpx solid;
				font-size: 24rpx;
				height: 60rpx;
				width: 650rpx;
				padding-left: 20rpx;
			}

			.text_8 {
				width: 95rpx;
				height: 23rpx;
				overflow-wrap: break-word;
				color: rgba(136, 136, 136, 1);
				font-size: 24rpx;
				font-family: PingFang-SC-Medium;
				font-weight: 500;
				text-align: left;
				white-space: nowrap;
				line-height: 34rpx;
				margin: 20rpx 0 0 19rpx;
			}

			.title {
				padding: 0px 30rpx;
				padding-bottom: 20rpx;
				margin-bottom: 20rpx;
				border-bottom: 1px solid #cccccc;
				font-weight: bold;

				.clo {
					color: #2f75fa;
				}
			}

			.list-1 {
				height: 40vh;
				padding-bottom: 30rpx;
				width: 100%;

				.list-2 {
					display: flex;
					flex-direction: row;
					flex-wrap: wrap;
					justify-content: space-between;
					align-items: center;
					width: 100%;

					.popuplist {
						width: 50%;
						height: 350rpx;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;

						.list_see {
							background-color: #ffffff;
							position: relative;
							border: 2rpx #f7f7f7 solid;
						}

						.active1 {
							border: 2rpx #2f89ff solid;
						}
					}
				}
			}
		}
	}
</style>